import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBImageStyle/YBImageStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';


class YBMessageSubPage extends StatelessWidget {

  final String title;
  final String message;
  final String createTime;

  const YBMessageSubPage({Key key, this.title, this.message, this.createTime}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
        color: YBColor.white,
        height: YBTextStyle.adapterSize58,
        child:Padding(
          padding: EdgeInsets.only(left: YBTextStyle.adapterSize20,right: YBTextStyle.adapterSize20),
          child:  Row(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              Container(
                child: Image.asset(YBImageStyle.getImagePath('mine_systemInfoImage')),
              ),
              Container(
                width: YBTextStyle.adapterSize15,
              ),
              Expanded(
                child: Column(
                  mainAxisAlignment: MainAxisAlignment.center,
                  crossAxisAlignment: CrossAxisAlignment.start,
                  children: [
                    Container(
                      child: Row(
                        mainAxisAlignment: MainAxisAlignment.spaceBetween,
                        crossAxisAlignment: CrossAxisAlignment.center,
                        children: [
                          Container(
                            child: Text(
                              title??"",
                              style: YBTextStyle.TextStyle1B1C1F15Medium,
                            ),
                          ),
                          Container(
                            child: Text(
                              createTime??"",
                              style: YBTextStyle.TextStyleA9AEB812,
                            ),
                          ),
                        ],
                      ),
                    ),
                    Container(
                      height: YBTextStyle.adapterSize5,
                    ),
                    Container(
                      child: Text(
                        message??"",
                        maxLines: 1,
                      ),
                    ),
                  ],
                ),
              ),
            ],
          ),
        ),
    );
  }
}
